/*
 * @Autor: zengy
 * @Date: 2021-03-31 09:29:01
 * @LastEditors: zjp
 * @LastEditTime: 2021-09-07 17:41:27
 * @Description: 接口路径汇总
 * @FilePath: \3DViewer\src\api\interface.js
 */

const base = {
  login: '/login'
};

// 基础接口
const basic = {
  // 线路车站列表
  lineStationList: '/mics-datahub/device/micsLine/list',
  // 车站列表
  stationList: '/mics-datahub/device/micsStation/listByLineId'
};

const device = {
  // 列表
  list: '/mics-datahub/device/micsSystem/list',
  // 设备数量按专业统计
  groupBySystem: '/mics-datahub/device/statistics/groupBySystem',
  // 专业集合设备统计
  countBySystems: '/mics-datahub/device/statistics/countBySystems'
};

// 能耗
const ems = {
  // 根据能耗分类层级获取能耗分类信息
  groupNodeStationListByLevel: '/mics-datahub/ems/emsGroupNodeStation/listByLevel',
  // 子分类能耗概况（E03）
  consumptionNode: '/mics-datahub/ems/consumption/emsConsumptionNodeSatistics',
  // 车站能耗设备能耗排行榜
  rankDevice: '/mics-datahub/ems/consumption/emsConsumptionRankByDevice',
  // 能耗各维度趋势
  dimension: '/mics-datahub/ems/consumption/listEmsConsumptionDimension',
  // 月度能耗趋势
  listMonthEmsConsumption: '/mics-datahub/ems/consumption/listMonthEmsConsumption',
  // 能耗分类
  powerList: '/mics-datahub/ems/emsGroupNode/list',
  // 按级别获取能耗
  listByLevel: '/mics-datahub/ems/emsGroupNodeLine/listByLevel',
  // 线路下各车站能耗排行榜（E05）
  rankByStation: '/mics-datahub/ems/consumption/emsConsumptionRankByStation',
  // 按层级获取车站所有能耗分类信息
  listAllByStation: '/mics-datahub/ems/emsGroupNodeStation/listAllByStation',
  // 根据能耗分类获取其下的设备
  listDeviceByNodeKey: '/mics-datahub/ems/emsGroupNodeStation/listDeviceByNodeKey',
  // 根据能耗设备获取子分类
  listByParent: '/mics-datahub/ems/emsGroupNodeLine/listByParent',

  // 线路每车公里牵引用电
  emsConsumptionPerKilometer: '/mics-datahub/ems/quota/emsConsumptionPerKilometer',
  // 线路每万人公里牵引电耗
  emsConsumptionPerTenthousandKilometer:
    '/mics-datahub/ems/quota/emsConsumptionPerTenthousandKilometer',
  // 线路单位建筑面积电耗
  emsConsumptionPerUnitBuilding: '/mics-datahub/ems/quota/emsConsumptionPerUnitBuilding',
  // 线路每万人次电耗
  emsConsumptionPerTenthousand: '/mics-datahub/ems/quota/emsConsumptionPerTenthousand',
  // 线路下各车站每万人次电耗
  listStationsEmsConsumptionPerTenthousand:
    '/mics-datahub/ems/quota/listStationsEmsConsumptionPerTenthousand',
  // 线路下各车站单位建筑面积电耗
  listStationsEmsConsumptionPerUnitBuilding:
    '/mics-datahub/ems/quota/listStationsEmsConsumptionPerUnitBuilding',
  // 线路、车站设备重点能耗
  listDeviceEmsConsumption: '/mics-datahub/ems/consumption/listDeviceEmsConsumption',
  // 根据能耗分类类型获取能耗分类
  listByNodeType: '/mics-datahub/ems/emsGroupNodeStation/listByNodeType',
  // 人工置数新增
  manualSetting: '/mics-datahub/ems/emsConsumptionManualSetting/manualSetting',
  // 人工置数历史
  manualSettingPage: '/mics-datahub/ems/emsConsumptionManualSetting/page',
  // 导出
  manualSettingExport: '/mics-datahub/ems/emsConsumptionManualSetting/export'
};

// cop
const cop = {
  // 获取年度、月度、日平均cop
  avgCop: '/mics-datahub/cop/adsBasCopAvgRt/getByParams',
  // 获取cop参考线
  getCopReference: '/mics-datahub/cop/emsCopReference/getById',
  // 线路各站点的cop参考线
  getCopList: '/mics-datahub/cop/emsCopReference/list',
  // 保存cop参考线
  saveCopReference: '/mics-datahub/cop/emsCopReference/save'
};

// 列车
const train = {
  // 列车开行图
  trainDiagram: '/mics-datahub/sig/pciOracleAdsDbTrainSingleTrainRunTargetRt/trainDiagram',
  // 车站站台数量
  countAtsPlatform: '/mics-datahub/sig/train/countAtsPlatform'
};

// 客流
const pflow = {
  // 历史高峰小时客流
  getHighestHourPflow: '/mics-datahub/pflow/history/getHighestHourPflow',
  // 客流趋势
  flowTrend: '/mics-datahub/pflow/history/listPflowDimension',
  // 根据能耗分类类型获取能耗分类
  listByNodeType: '/mics-datahub/ems/emsGroupNodeStation/listByNodeType',
  // 客流预警
  listPflowForecastAlarm: '/mics-datahub/pflow/history/listPflowForecastAlarm',
  // 预测客流当天统计
  getDayPflowForecast: '/mics-datahub/pflow/forecast/getDayPflowForecast',
  // 获取历史最高进出站客流
  getHighestPflow: '/mics-datahub/pflow/history/getHighestPflow',
  // 获取总客运量
  getPflowAll: '/mics-datahub/pflow/history/getPflowAll',
  // 获取客流增长率
  getPflowIncRate: '/mics-datahub/pflow/data/pflowIncRate',
  //历史高峰小时客流
  getHighestHourPflow: '/mics-datahub/pflow/history/getHighestHourPflow'
};
//天维度及以上客流
const PflowData = {
  //车站周预测客流数据(天粒度)
  weekForecastPflowGroupByDay: '/mics-datahub/pflow/data/weekForecastPflowGroupByDay',
  //车站月客预测流数据(天粒度)
  monthForecastPflowGroupByDay: '/mics-datahub/pflow/data/monthForecastPflowGroupByDay',
  //车站年客预测流数据(月粒度)
  yearForecastPflowGroupByMonth: '/mics-datahub/pflow/data/yearForecastPflowGroupByMonth',
  //线路当日客流排名
  pflowRankByLine: '/mics-datahub/pflow/data/pflowRankByLine'
};
// 环控
const bas = {
  // 车站温湿度和二氧化碳曲线（B02）
  environmentHistory: '/mics-datahub/bas/environment/environmentHistory'
};

// CCTV/摄像头
const cctv = {
  // 视频分析摄像头统计
  analysisCameraStatistics: '/mics-datahub/cctv/micsCctvCamera/analysisCameraStatistics',
  // 摄像头类型统计
  typeCameraStatistics: '/mics-datahub/cctv/micsCctvCamera/typeCameraStatistics'
};

// 运营信息
const hoi = {
  // 获取今日运营信息
  getById: '/vsd/hoi/hubOperationInfo/getById',
  // 新增今日运营信息
  saveId: '/vsd/hoi/hubOperationInfo/save'
};

// 告警信息
const alarm = {
  // 获取今日运营信息
  levelList: '/mics-datahub/alarm/micsAlarmLevel/list'
};

// PA广播
const pa = {
  //广播区域
  list: '/mics-datahub/pa/paZone/list',
  //计划广播
  ScheduleBroadcast: '/mics-datahub/pa/paScheduleBroadcast/list',
  //执行日志
  hubPaPublishLog: '/mics-datahub/pa/hubPaPublishLog/list',
  //预制广播
  paDvaMessage: '/mics-datahub/pa/paDvaMessage/list',
  //广播下发
  pushMessage: '/mics-datahub/pa/paControl/playRecord'
};
// PIDS广播
const pids = {
  //广播区域
  list: '/mics-datahub/pids/pidsZones/list',
  //计划广播
  ScheduleBroadcast: '/mics-datahub/',
  //执行日志
  hubPaPublishLog: '/mics-datahub/pids/hubPidsPublishLog/list',
  //预制广播
  paDvaMessage: '/mics-datahub/pids/tiPredefinedMessage/list',
  //广播下发
  pushMessage: '/mics-datahub/pids/pidsControl/publishMessage'
};
// PIDS广播
const hjdp = {
  //数据中台
  pullBySqlRemote: '/mics-datahub/hjdp/hubHjdpDataApi/pullBySqlRemote'
};
// 智能照明
const znzm = {
  // 智能照明概览
  listZnzmDevice: '/mics-datahub/znzm/hubZnzmControl/listZnzmDevice',
  listControlLogByStation: '/mics-datahub/znzm/hubZnzmControl/listControlLogByStation'
};

// 行车/实时行车信息
const sigTrain = {
  //统计站台个数，上下行算一个站台
  countAtsPlatform: '/mics-datahub/sig/train/countAtsPlatform'
};

// 站务施工管理
const roadwork = {
  // 分页
  terminalRoadworkPage: '/mics-datahub/roadwork/terminalRoadwork/page',
  // 新增
  terminalRoadworkSave: '/mics-datahub/roadwork/terminalRoadwork/save',
  // 车站列表
  listStation: '/mics-datahub/roadwork/terminalRoadwork/listStation',
  // 删除
  removeById: '/mics-datahub/roadwork/terminalRoadwork/removeById',
  // 修改
  update: '/mics-datahub/roadwork/terminalRoadwork/update'
};

// 场景预案/预案步骤信息
const sps = {
  // 根据场景预案id获取详细步骤
  listByPlan: '/mics-datahub/sps/hubPlanStep/listByPlan',
  // 执行日志详情
  hubPlanExcuteStepLogList: '/mics-datahub/sps/hubPlanExcuteStepLog/list',
  // 预案执行
  excute: '/mics-datahub/sps/hubPlanExcute/excute',
  // 执行日志
  getByParams: '/mics-datahub/sps/hubPlanExcuteLog/getByParams',
  // 步骤确认
  excuteComfirm: '/mics-datahub/sps/hubPlanExcute/excuteComfirm',
  // 强制结束场景
  finishExcute: '/mics-datahub/sps/hubPlanExcute/finishExcute',
};


export default {
  base,
  device,
  ems,
  train,
  cop,
  pflow,
  bas,
  basic,
  cctv,
  hoi,
  alarm,
  pa,
  pids,
  PflowData,
  hjdp,
  znzm,
  sigTrain,
  roadwork,
  sps,
  install(app) {
    app.config.globalProperties.$api = {
      base,
      device,
      ems,
      train,
      cop,
      pflow,
      bas,
      basic,
      cctv,
      hoi,
      alarm,
      pa,
      pids,
      PflowData,
      hjdp,
      znzm,
      sigTrain,
      roadwork,
      sps,
    };
  }
};
